
import {Page} from 'ionic-angular';
import {NavController, NavParams} from 'ionic-angular';
import {ImgPathPipe} from '../../pipes/img-path';

import {MineService}    from '../../services/mine';

@Page({
  templateUrl: 'build/pages/mine/mine.html',
  providers: [MineService],
  pipes: [ImgPathPipe]
})
export class Mine {
    data: any;
    errorMessage: any;

    constructor(private nav: NavController, private _mineService: MineService) {
        let me = this;
        this._mineService.getData().subscribe(
            json => me.data = json.data,
            error => me.errorMessage = <any>error
        );
    }
}
